package com.atguigu.spzx.model.vo.common;

import lombok.Getter;

@Getter // 提供获取属性值的getter方法
public enum ResultCodeEnum {

    SUCCESS(200 , "操作成功") ,
    LOGIN_ERROR(201 , "用户名或者密码错误"),
    DATA_ERROR(202,"数据不能为空" ),
    ACCOUNT_NOT_EXSIT(203,"用户不存在" ),
    PASSWORD_ERROR(204,"密码不正确" ),
    ACCOUNT_STOP(205,"账号被停用" ),
    SYSTEM_ERROR(206,"系统异常" ),
    CODE_ERROR(207,"验证码不正确" ),
    NO_AUTH(208, "没有登录或登录超时");

    private Integer code ;      // 业务状态码
    private String message ;    // 响应消息

    private ResultCodeEnum(Integer code , String message) {
        this.code = code ;
        this.message = message ;
    }

}